-- GENERATED SPELL FOR [Shadowsword Assassin] --


function spell0_25484(pUnit, Event) --@Aimed Shot,n/a--
pUnit:FullCastSpellOnTarget(46460,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25484', 4000, 1)
end

function spell1_25484(pUnit, Event) --@Assassin\'s Mark,n/a--
pUnit:FullCastSpellOnTarget(46459,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25484', 554, 1)
end

function spell2_25484(pUnit, Event) --@Greater Invisibility,Self--
pUnit:FullCastSpellOnTarget(16380,pUnit)
pUnit:RegisterEvent('Sorts_25484', 558, 1)
end

function spell3_25484(pUnit, Event) --@Shadowstep,n/a--
pUnit:FullCastSpellOnTarget(46463,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25484', 1295, 1)
end

function Sorts_25484(pUnit, Event)
local choix_sorts_25484 = math.random(0, 3)
if choix_sorts_25484 == 0 then
pUnit:RegisterEvent('spell0_25484', 1, 1)
end
if choix_sorts_25484 == 1 then
pUnit:RegisterEvent('spell1_25484', 1, 1)
end
if choix_sorts_25484 == 2 then
pUnit:RegisterEvent('spell2_25484', 1, 1)
end
if choix_sorts_25484 == 3 then
pUnit:RegisterEvent('spell3_25484', 1, 1)
end
end

function mob25484_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25484', math.random(1500, 3000), 1)
end

function mob25484_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25484_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25484_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25484, 1, 'mob25484_Action')
RegisterUnitEvent(25484, 2, 'mob25484_Leave')
RegisterUnitEvent(25484, 3, 'mob25484_Kill')
RegisterUnitEvent(25484, 4, 'mob25484_Die')
